Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Html control with preview #4908

Merged
merged 2 commits into from
Feb 15, 2024
Merged

Html control with preview #4908

merged 2 commits into from
Feb 15, 2024

Conversation

gbalint
Copy link
Contributor

@gbalint gbalint commented Feb 15, 2024

Description:

  1. Create a new html input control
  2. Remove html preview from string input control (but keep the automatic image preview)
  3. Show html preview for html input control

Copy link
Contributor

github-actions bot commented Feb 15, 2024

Try me

Copy link

relativeci bot commented Feb 15, 2024

Job #10457: Bundle Size — 62.15MiB (~+0.01%).

a0120c8(current) vs d299c8d master#10453(baseline)

Warning

Bundle contains 58 duplicate packages – View duplicate packages

Bundle metrics  Change 2 changes Regression 1 regression
                 Current
Job #10457
     Baseline
Job #10453
Regression  Initial JS 35.2MiB(+0.02%) 35.19MiB
No change  Initial CSS 0B 0B
Change  Cache Invalidation 21.93% 0%
No change  Chunks 28 28
No change  Assets 32 32
No change  Modules 4359 4359
No change  Duplicate Modules 494 494
No change  Duplicate Code 30.8% 30.8%
No change  Packages 467 467
No change  Duplicate Packages 58 58
Bundle size by type  Change 2 changes Regression 1 regression Improvement 1 improvement
                 Current
Job #10457
     Baseline
Job #10453
Regression  JS 62.14MiB (~+0.01%) 62.14MiB
Improvement  HTML 11.37KiB (-0.32%) 11.41KiB

View job #10457 reportView feature/html-prop-control branch activityView project dashboard

Copy link
Contributor

Performance test results:
(Chart1)
(Chart2)

@@ -53,31 +53,31 @@ describe('Set element prop via the data picker', () => {
let currentOption = editor.renderedDOM.getByTestId(VariableFromScopeOptionTestId(0))
await mouseClickAtPoint(currentOption, { x: 2, y: 2 })
expect(within(theScene).queryByText('Title too')).not.toBeNull()
expect(within(theInspector).queryAllByText('Title too')).toHaveLength(2)
expect(within(theInspector).queryByText('Title too')).not.toBeNull()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's slowly getting worse, this test :D

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as if to prove my point that testing what is in the UI is not the way to go

alignItems: 'center',
justifyContent: 'center',
}}
title='Hello Utopia'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't name this Hello Utopia, just to avoid the test text matcher being confused in the future

@gbalint gbalint merged commit 7893ec4 into master Feb 15, 2024
22 checks passed
@gbalint gbalint deleted the feature/html-prop-control branch February 15, 2024 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants